package com.hrms.controller;

import com.hrms.service.EchartsDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @AUTHOR LK
 * @CREATE 2021-10-25-9:39
 */
@RestController
@RequestMapping("/echarts")
public class EchartsController {

	@Autowired(required = false)
	EchartsDataService echartsDataService;

	@RequestMapping("/queryAttendByMonth")
	@ResponseBody
	public HashMap<String, Object> queryAttendByMonth() {
		return echartsDataService.queryAttendByMonth();
	}

	@RequestMapping("/queryDeptBySalary")
	@ResponseBody
	public HashMap<String, Object> queryDeptBySalary() {
		return echartsDataService.queryDeptBySalary();
	}
	@RequestMapping("/querySex")
	@ResponseBody
	public HashMap<String, Object> querySome() {
		return echartsDataService.querySex();
	}
	@RequestMapping("/queryAge")
	@ResponseBody
	public HashMap<String, Object> queryAge() {
		return echartsDataService.queryAge();
	}
	@RequestMapping("/queryStu")
	@ResponseBody
	public HashMap<String, Object> queryStu() {
		return echartsDataService.queryStu();
	}
	@RequestMapping("/queryTopSalaryMonth")
	@ResponseBody
	public HashMap<String, Object> queryTopSalaryMonth() {
		return echartsDataService.queryTopSalaryMonth();
	}
	@RequestMapping("/queryDept")
	@ResponseBody
	public HashMap<String, Object> queryDept() {
		return echartsDataService.queryDept();
	}
}
